int value=0;//定义一个整型的变量来保存测量值
void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);//设置波特率为9600
}

void loop() {
  // put your main code here, to run repeatedly:
  value=(analogRead(A0)*100)/1024;//把测量到的值保存至value
  Serial.println(value);//向串口发送测量得到的值
  delay(500);//延时500ms
}
